<?php

class RestoreForm extends CFormModel {

	public $confirmPassword;
	public $userPassword;
	public $userEmail;

	public function rules() {
		return array(
			//array('userEmail', 'required'),
			array('userPassword, confirmPassword', 'required'),
			array('confirmPassword', 'compare', 'compareAttribute' => 'userPassword'),
			array('confirmPassword, userPassword', 'length', 'min' => 6, 'max' => 32),
			array('userEmail', 'email'),
		);
	}

	public function attributeLabels() {
		return array(			
			'userEmail' => 'E-mail',			
			'userPassword' => 'Пароль',			
			'confirmPassword' => 'Подтверждение пароля',
		);
	}

}
